﻿using Microsoft.EntityFrameworkCore.Storage;

namespace Gnivc.CarDealership.Api.Application.Abstractions;

public interface IUnitOfWork 
{
    Task<IDbContextTransaction> BeginTransactionAsync();
    Task CommitTransactionAsync();
    Task RollbackTransactionAsync();
    Task<int> SaveChangesAsync(CancellationToken cancellationToken = default);
}
